﻿using System;
using Library.OrmEnterpriseEntity.Factor;
using Library.OrmEnterpriseEntity.TableInfo;

namespace Library.OrmEnterpriseEntity {
	public class QueryMassBuilder : ExpressionBuilder {
		public readonly DbColumnView Column;
		public readonly string Filter;
		public override ExpressionType ExpType {
			get { return ExpressionType.Mass; }
		}

		public QueryMassBuilder(DbColumnView column, string massFilter, EventHandler<CustomValueParseEventArgs> parserTextCallback) {
			Column = column;
			Filter = massFilter;
			CustomValueParse = parserTextCallback;
		}

		/// <summary>
		/// Fire when user call BuildExpression on date time column
		/// </summary>
		internal EventHandler<CustomValueParseEventArgs> CustomValueParse;

	}
}
